//index.js
//获取应用实例
const app = getApp()
let corpsId = '1';

Page({
  data: {
    taskList: []
  },

  onLoad: function (options) {
    let self = this;
    wx.request({
      url:app.globalData.prefix+"/taskAction/corpsTaskList?openId="+app.globalData.userInfo.openId,
      success:function(res){
        self.setData({taskList:res.data.result});
        console.log(res.data.result);
      }
    });
  },
  goDetaily(e) {
    console.log(e);
    let taskId = e.currentTarget.dataset.id
    wx.navigateTo({
      url: '../takeTaskDetaily/takeTaskDetaily?taskId='+taskId+"&type=corps",
    })
  }
})